import type { goodsInfo } from '@/types/global'
import type { HotParams, hotPageInfo } from '@/types/hot'
import { http } from '@/utils/http'

// type HotParams = pageParams & { selectId?: string }
export const getHotGoods = (data: HotParams) => {
  return http<hotPageInfo<goodsInfo>>({
    method: 'GET',
    url: 'goods/goodsInfo/wxGetGoodsListBySelectId',
    data,
  })
}
